<?= $this->partial('user/morelayout.phtml', array(
									'uid' => $this->uid, 
									'type' => $this->type,
									'myaction' => $this->myaction
									)
	); 
?>
<script>
if (window == top)top.location.href = "";
function checkform(){
	var email=$("input[name='email']").val();
	if(!checkEmail(email)){
		parent.showMsg('Please check your email!');
		return false;
	}
	var phone=$("input[name='phone']").val();
	if(phone==''){
		parent.showMsg('Please check your phone!');
		return false;
	}
	commonEffection.setLoading();
	$('#buyerContactForm').submit();
}
$(document).ready(
	function(){
		var sex="<?=$this->buyerArray[0]['sex']?>";
		sex=sex==''?'m':sex;
		$("input[type='radio']").attr("checked",false);
		$("input[value='"+sex+"']").attr("checked",true);
	}
);
</script>
<div class="frame_introDiv">
<form name="userForm" id="userForm" action="adminb<?=CHOSING_DE?>info<?=CHOSING_DE?>docontact" method="post">
  <table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#c8d9e9">
  	<tr>
	  <td valign="top" class="ri-bbgg"><span class="red">*</span> Username： </td>
	  <td class="le"><?=$this->buyerArray[0]['username']?></td>
    <tr>
    <tr>
      <td width="27%" class="ri-bbgg"> Login Email：</td>
      <td width="73%" class="le"><?=$this->buyerArray[0]['username']?></td>
    </tr>
    <tr>
      <td width="27%" class="ri-bbgg"> Nick name：</td>
      <td width="73%" class="le"><input type="text" name="nick_name" value="<?=$this->buyerArray[0]['nick_name']?>" /></td>
    </tr>
    <tr>
      <td valign="top" class="ri-bbgg"> Contact name：</td>
      <td class="le">
	  	<input type="text" name="contact_name" value="<?=$this->buyerArray[0]['contact_name']?>" />
		<input type="radio" name="sex" id="sex" value="m" checked="checked" />
        Mr.
        <input type="radio" name="sex" value="f"  />
        Ms. 
	  </td>
    </tr>
    <tr>
      <td class="ri-bbgg"><span class="red">*</span> Business email：</td>
      <td class="le"><input name="email" maxlength=50 type="text" id="email" value="<?=$this->buyerArray[0]['email']?>" /></td>
    </tr>
    <tr>
      <td class="ri-bbgg">Skype：</td>
      <td class="le"><input name="skype" maxlength=50 type="text" id="skype" value="<?=$this->buyerArray[0]['skype']?>" /></td>
    </tr>
    <tr>
      <td valign="top" class="ri-bbgg"><span class="red">*</span> Business Phone：</td>
      <td class="le"><input name="phone" type="text" maxlength=100 id="phone" value="<?=$this->buyerArray[0]['phone']?>" /></td>
    </tr>
    <tr>
      <td valign="top" class="ri-bbgg">Fax Number：</td>
      <td class="le"><input name="fax" maxlength=20 type="text" id="fax" value="<?=$this->buyerArray[0]['fax']?>" /></td>
    </tr>
    <tr>
      <td valign="top" class="ri-bbgg">Cell Phone：</td>
      <td class="le"><input name="cell" maxlength=30 type="text" id="cell" value="<?=$this->buyerArray[0]['cell']?>" /></td>
    </tr>
	<!--
    <tr>
      <td colspan="2" class="se" style="text-align:center"><span>
        <input name="button2" type="button" class="iput" onclick="checkform();" value="保 存" />&nbsp;&nbsp;
      </span><font color="#FF0000"></font></td>
    </tr>
	-->
  </table>
  </form>
</div>